// https://github.com/michael-ciniawsky/postcss-load-config
const browserslist = require('./package.json').browserslist
module.exports = (ctx) => ({
  plugins: {
    'postcss-pxtorem': {
      rootValue: 100,
      propWhiteList: []
    },
    'postcss-url': {
      // filter: (asset) => {
      //   // or some other code
      //   console.log(asset.relativePath)
      //   return /^.*\.(jpg|jpeg|png)$/.test(asset.relativePath)
      // },
      url: 'inline'
    },
    'autoprefixer': {
      browsers: browserslist
    }
  }
})
